home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / DETH_SRC.ZIP / DMALIB.H < prev    next >
C/C++ Source or Header  |  1993-06-27  |  890b  |  33 lines

  1.  
  2. /* Copyright 1993 by Peter Sprenger   Pete@amber.dinoco.de
  3.  *                   5014 Kerpen 3
  4.  *                   Germany
  5.  *
  6.  * Permission to use, copy, modify, and distribute this
  7.  * software and its documentation for any purpose and without
  8.  * fee is hereby granted, provided that the above copyright
  9.  * notice appear in all copies.  The author Peter Sprenger
  10.  * makes no representations about the suitability of this
  11.  * software for any purpose.  It is provided "as is" without
  12.  * express or implied warranty.
  13.  */
  14.  
  15. #ifndef __DMA__
  16.  
  17. #define __DMA__
  18.  
  19. #define DMA_IN 4
  20. #define DMA_OUT 8
  21. #define DMA_SINGLE 0x40
  22. #define DMA_AUTO 0x10
  23. #define DMA_BLOCK 0x80
  24. #define DMA_DEMAND 0
  25. #define DMA_DECREMENT 0x20
  26.  
  27. WORD dma_set(DWORD adr,DWORD len,int channel,BYTE mode);
  28. WORD dma_next(int channel);
  29. DWORD far2long(char far *adr);
  30. long dma_len(int channel);
  31.  
  32. #endif
  33.